<?php 
header("content-type:text/html;charset=utf-8");
$id = $_GET['id'];
// print_r($id);
$pdo = new PDO("mysql:host=127.0.0.1;dbname=lx","root","root");
$sql = "delete from users where id = $id";
$res = $pdo->exec($sql);
if ($res) {
	echo "<script>alert('删除成功');location.href='show.php';</script>";
}else{
	echo "<script>alert('删除失败');location.href='show.php';</script>";
}





 ?>